package com.hljx.service;

import com.hljx.dto.DateDTO;
import org.springframework.batch.core.JobParametersInvalidException;
import org.springframework.batch.core.repository.JobExecutionAlreadyRunningException;
import org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException;
import org.springframework.batch.core.repository.JobRestartException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: hljx
 * @BelongsPackage: com.hljx.service
 * @Author: lp
 * @CreateTime: 2023-11-15  12:05
 * @Description: TODO
 * @Version: 1.0
 */
@Component
public class ThreadService {
    @Autowired
    private EtlItemDetailService  etlItemDetailService;

    @Async
    public void dataAsync(DateDTO dateDTO) {
      etlItemDetailService.dataCleaning(dateDTO);
      etlItemDetailService.dataStatistics(dateDTO);
      etlItemDetailService.dataSummary(dateDTO);
    }





}
